package com.example.drools.spring.entity;

import java.io.Serializable;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;

/**
 * @author ddsyw
 * @version 1.0
 * @date 2021/12/29 10:28 上午
 */
@Getter
@Setter
public class DroolRule implements Serializable {

  /**
   * unique rule name
   */
  @NonNull
  private String rule;

  /**
   * execute salience
   */
  private Integer salience;

  @NonNull
  private String when;

  @NonNull
  private String then;

  //TODO add other rule field
}
